// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import http from './utils/http'
import msg from './utils/messageBox'
import store from './store'
import VueQuillEditor from 'vue-quill-editor'
import '@/permission'
import '@/icons/index.js'
import 'babel-polyfill'

import 'element-ui/lib/theme-chalk/index.css'
import './style/animate.min.css'
import './style/font-awesome.min93e3.css'
import './style/style.min862f.css'
import './style/bootstrap.min.css'
import './style/bootstrap.min14ed.css'
import './style/style.min.css'

import * as filters from './utils/filters' // global filters
// register global utility filters.
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
Vue.use(VueQuillEditor)

Vue.config.productionTip = false
Vue.prototype.$http = http
Vue.use(ElementUI)
Vue.prototype.$msg = msg

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
